home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
vbdos5
/
memform.frm
< prev
next >
Wrap
Text File
|
1995-12-05
|
3KB
|
99 lines
VERSION 2.00
Begin Form memform
Caption = "DOS 5.0 Memory"
ClientHeight = 5820
ClientLeft = 135
ClientTop = 1485
ClientWidth = 10140
Height = 6225
Icon = MEMFORM.FRX:0000
Left = 75
LinkMode = 1 'Source
LinkTopic = "Form1"
ScaleHeight = 5820
ScaleWidth = 10140
Top = 1140
Width = 10260
Begin TextBox textbox
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Courier"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 5055
Left = 120
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 4
Top = 720
Width = 9855
End
Begin CommandButton mcommand
Caption = "List Memory"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 495
Left = 5520
TabIndex = 3
Top = 120
Width = 2775
End
Begin OptionButton coption
Caption = "Classify"
Height = 495
Left = 3120
TabIndex = 2
Top = 120
Width = 1215
End
Begin OptionButton doption
Caption = "Debug"
Height = 495
Left = 1680
TabIndex = 1
Top = 120
Width = 1215
End
Begin OptionButton poption
Caption = "Program"
Height = 495
Left = 240
TabIndex = 0
Top = 120
Width = 1215
End
End
Sub mcommand_Click ()
text$ = ""
textbox.text = text$
Close
Open "dos5mem.bat" For Output As #1
If poption.value Then
Print #1, "mem.exe /p > memtext"
Else
If doption.value Then
Print #1, "mem.exe /d > memtext"
Else
Print #1, "mem.exe /c > memtext"
End If
End If
Close
x = Shell("dos5mem.bat", 7)
Close
Open "memtext" For Input As #1
Do Until EOF(1)
Line Input #1, nextline$
text$ = text$ + nextline$ + Chr$(13) + Chr$(10)
Loop
Close
textbox.text = text$
Kill "memtext"
Kill "dos5mem.bat"
End Sub